package edu.yuhf.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import edu.yuhf.dao.iface.EmpDao;
import edu.yuhf.domain.Emp;
import edu.yuhf.service.iface.EmpService;

@Service
@Transactional
public class EmpServiceImpl implements EmpService {

	@Resource
	EmpDao empDao;
	@Override
	public List<Emp> queryAll() {
		return empDao.queryAll();
	}

	@Override
	public List<Emp> queryByName(String name) {
		return empDao.queryByName(name);
	}

	@Override
	public boolean insertEmp(Emp emp) {
		return empDao.insertEmp(emp);
	}

	@Override
	public boolean updateEmp(int empno, Emp emp) {
		return empDao.updateEmp(empno, emp);
	}

	@Override
	public boolean delete(int empno) {
		return false;
	}

}
